#include<bits/stdc++.h>
using namespace std;
int a[200010];
int cnt[200010];
int main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin >> n;
    for (int i = 1;i <= n;i ++) {
        cin >> a[i];
        cnt[a[i]] ++;
    }
    int ans = 0;
    sort(a+1,a+n+1,greater<int>());
    for (int i = n;i >= 1;i --) {
        if (a[i] == -1) {
            continue;
        }
        int j = i;
        while ((a[j] == -1 || a[j] >= a[i]) && j <= n) {
            j ++;
        }
        a[j] = -1;
    }
    for (int i = 1;i <= n;i ++) {
        if (a[i] != -1) {
            ans ++;
        }
    }
    cout << ans << "\n";
    return 0;
}
